package com.v9.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.v9.common.core.domain.AbstractLongEntity;
import com.v9.common.model.ActionTypeEnum;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 操作日志记录表 oper_log
 *
 * @author shilun
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_operator_log",common = "操作记录")
public class OperatorLog extends AbstractLongEntity  {
    private static final long serialVersionUID = 1L;


    @TableField(common = "操作模块")
    private String title;

    @TableField(common = "业务类型")
    private ActionTypeEnum businessType;

    @TableField(common = "请求方法")
    private String method;

    @TableField(common = "请求方法")
    private String requestMethod;

    @TableField(common = "操作类别")
    private Integer operatorType;

    @TableField(common = "操作人员")
    private String operName;

    @TableField(common = "部门名称")
    private String deptName;

    @TableField(common = "请求url")
    private String url;

    @TableField(common = "操作地址")
    private String ip;

    @TableField(common = "操作地点")
    private String location;

    @TableField(common = "请求参数")
    private String params;

    @TableField(common = "返回参数")
    private String jsonResult;

    @TableField(common = "操作是否正常")
    private Boolean status;

    @TableField(common = "错误消息")
    private String errorMsg;

}
